package com.rightsidetech.system.dtos.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@JsonIgnoreProperties(value={"count"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysRuleCommodityPageResp implements Serializable {

    private Long id;

    @ApiModelProperty("商品名称")
    private String commodityName;

    @ApiModelProperty("商品id")
    private Long commodityId;

    @ApiModelProperty("规格")
    private String specs;

    @ApiModelProperty("积分")
    private BigDecimal ruleValue;

    @ApiModelProperty("规则状态 0-开启 1-关闭")
    private Byte ruleStatus;

    @ApiModelProperty("父级id")
    private Long parentId;

    private Integer count;

    private Boolean _loading = false;

    @ApiModelProperty("子级分类")
    private List<SysRuleCommodityPageResp> children = new ArrayList();
}
